package geecache

// Interface. PickPeer()方法用于根据传入的key选择相应节点PeerGetter

type PeerPicker interface {
	PickPeer(key string) (peer PeerGetter, ok bool)
}

// Interface. Get()方法用于从对应group查找缓存值。
type PeerGetter interface {
	Get(group string, key string) ([]byte, error)
}
